gtk/language-names.c: Fix build on non-GCC/CLang
authorChun-wei Fan <fanchunwei@src.gnome.org>
Wed, 28 Mar 2018 03:59:11 +0000 (11:59 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Tue, 19 Jun 2018 10:23:22 +0000 (18:23 +0800)
commitaa76abbbeb8db13ab8b450581110484fa6b4ffae
tree15e769ea745f51d6796a67504cd619d14d82f77e
parenta0b0cbe98dbf78a226015c283ab05ce9f2a6ef84
gtk/language-names.c: Fix build on non-GCC/CLang

Remove g_auto*() usage from these sources and use the traditional
g_free(), as g_auto*() are GCCisms (or CLangisms).

Also, don't include unistd.h unconditionally and stop including
langinfo.h and dirent.h, since they seem to be unused.

Partially cherry-picked from a4c0395343c3969c330cb37efa45ae952ba74b86

https://bugzilla.gnome.org/show_bug.cgi?id=773299
gtk/language-names.c